package com.xiyoufang.club.web;

import lombok.Data;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {

    @RequestMapping("/")
    @ResponseBody
    String hello() {
        return "Hello World!";
    }


    @RequestMapping("/ws")
    String ws() {
        return "hello.html";
    }

    @Data
    static class Result {
        private final int left;
        private final int right;
        private final long answer;
    }


}
